package cn.edu.gzhu.workOrderManagement.pojo.dto.user;

import cn.edu.gzhu.workOrderManagement.constants.MessageConstant;
import cn.edu.gzhu.workOrderManagement.constants.RegexConstant;
import cn.edu.gzhu.workOrderManagement.enumeration.UserAuthorityEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserUpdateDto {
    @NotBlank
    private String username;


    @Pattern(regexp = RegexConstant.PASSWORD)

    private String password;

    private UserAuthorityEnum authority;

    private String organization;

    private Boolean isAvailable;
}
